//
//  UIViewController+Extension.h
//  Furniture
//
//  Created by 王小娜 on 2017/1/20.
//  Copyright © 2017年 beyondSoft. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (Extension)

@property (nonatomic, strong) UIButton * areaBtn;

+ (UIViewController *)getCurrentViewController;

- (void)setUIInterfaceOrientationPortrait;

- (void)setUIInterfaceOrientationLandscapeLeft;

/**
设置返回按钮
 */
- (void)setBackBtn;
- (void)setHealthyRightBar;
/**
设置navigationbar的titleView
 */
- (void)setNavigationBarTitleView;

/**
 设置navigationbar的左侧按钮
 @param titleArr 标题数组
 @param imageArr 图片数组
 @param delegate 响应点击事件 第一个item的响应事件的方法为：firstRightBarItemClicked
 第二个item的响应事件的方法为：secondRightBarItemClicked， 需要在delegate类里去实现相对应的方法
 */
- (void)setNavigationBarRightItemTitle:(NSArray *)titleArr image:(NSArray *)imageArr delegate:(id)delegate;


- (void)popSystemAlertWithTitle:(nullable NSString *)title msg:(nullable NSString *)msg cancelBlock:(void (^_Nullable)(void))cancel sureBlock:(void (^_Nullable)(void))sure;

-(void)popSystemAlertWithTitle:(NSString *)title msg:(NSString *)msg cancelTitle:(nullable NSString *)cancelTitle cancelBlock:(void (^_Nullable)(void))cancel sureTitle:(nullable NSString *)sureTitle sureBlock:(void (^_Nullable)(void))sure;

-(void)modalPresentVC:(UIViewController *_Nullable)vc viewAlpha:(CGFloat)alpha;

@end
